package com.yuyou.tas.report.api;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.tas.report.service.IExamModelRangeService;
import com.yuyou.tas.report.service.IExamModelService;
import com.yuyou.tas.service.api.report.entity.ExamModel;
import com.yuyou.tas.service.api.report.service.ExamModelAPI;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

@RestController
public class examModelAPIImpl implements ExamModelAPI {

	@Autowired
	private IExamModelService examModelService;
	
	@Autowired
	private IExamModelRangeService examModelRangeService;

	@Override
	public List<ExamModel> selectModelByTrimester(Long trimesterId) {
		return examModelService.selectModelByTrimester(trimesterId);
	}

	@Override
	public List<ExamModel> selectModelByLevel(Long levelId) {
		return null;
	}

	@Override
	public ResBoolSimpleInfo<String> deleteByClassId(@RequestParam("lessonClassId") Long lessonClassId, @RequestParam("authOrganizationId") Long authOrganizationId) {
		examModelRangeService.deleteByClassId(lessonClassId, authOrganizationId);
		return ResBoolSimpleInfo.getSuccessInfo();
	}


}
